/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package smsserver.utils;

import org.apache.mina.core.session.IoSession;

/**
 *
 * @author ZHENG ZHI YOU
 */
public class User {
    String iccid;
    IoSession session;
    long updatetime;
    int index;
    String pstyle;

    String appname;
    String version;

    String ip;

    String sdkver;

    public String getSdkver() {
        return sdkver;
    }

    public void setSdkver(String sdkver) {
        this.sdkver = sdkver;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getAppname() {
        return appname;
    }

    public void setAppname(String appname) {
        this.appname = appname;
    }
    

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getPstyle() {
        return pstyle;
    }

    public void setPstyle(String pstyle) {
        this.pstyle = pstyle;
    }

//    int status;
//
//    public int getStatus() {
//        return status;
//    }
//
//    public void setStatus(int status) {
//        this.status = status;
//    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    public String getIccid() {
        return iccid;
    }

    public void setIccid(String iccid) {
        setIndex(Tools.getNetId(iccid));
        this.iccid = iccid;
    }

    public IoSession getSession() {
        return session;
    }

    public void setSession(IoSession session) {
        this.session = session;
    }

    public long getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(long updatetime) {
        this.updatetime = updatetime;
    }
}
